package com.pulse.base.service;

import com.pulse.base.domain.CircuitMeasureRefer;

/**
 * 参考曲线
 */
public interface ICircuitMeasureReferService {
    /**
     * 根据设备编号和端口号查询
     * @param deviceNo
     * @param channel
     * @return
     */
    CircuitMeasureRefer selectCircuitMeasureReferByDeviceNoAndChannel(String deviceNo, Integer channel);

    /**
     * 新增
     * @param circuitMeasureRefer
     * @return
     */
    int insertCircuitMeasureRefer(CircuitMeasureRefer circuitMeasureRefer);

    /**
     * 修改
     * @param circuitMeasureRefer
     * @return
     */
    int updateCircuitMeasureRefer(CircuitMeasureRefer circuitMeasureRefer);

    /**
     * 根据measureId删除
     * @param measureId
     * @return
     */
    int deleteByMeasureId(Long measureId);

    /**
     * 根据设备id删除
     * @param deviceNo
     * @return
     */
    int deleteByDeviceNo(String deviceNo);
}
